package org.gd.hellojaxb.privat24.commons;

import javax.xml.bind.annotation.*;

@XmlRootElement(name = "answ")
@XmlAccessorType(XmlAccessType.NONE)
public class CommonsResponse {

    @XmlAttribute(name = "Ref")
    private String reference;
    @XmlAttribute(name = "State")
    private String state;
    @XmlAttribute(name = "ExtId")
    private String extId;
    @XmlAttribute(name = "CardPan")
    private String card;

    @XmlAttribute(name = "ErrCode")
    private String errorCode;
    @XmlAttribute(name = "ErrMes")
    private String errorMessage;

    @XmlElement(name = "BaseAccount")
    private CommonsBaseAccount account;
    @XmlElement(name = "BonusPlus")
    private CommonsBonusPlus bonusPlus;

    public CommonsResponse() {
    }

    public String getReference() {
        return reference;
    }

    public void setReference(String reference) {
        this.reference = reference;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getExtId() {
        return extId;
    }

    public void setExtId(String extId) {
        this.extId = extId;
    }

    public String getCard() {
        return card;
    }

    public void setCard(String card) {
        this.card = card;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public CommonsBaseAccount getAccount() {
        return account;
    }

    public void setAccount(CommonsBaseAccount account) {
        this.account = account;
    }

    public CommonsBonusPlus getBonusPlus() {
        return bonusPlus;
    }

    public void setBonusPlus(CommonsBonusPlus bonusPlus) {
        this.bonusPlus = bonusPlus;
    }
}
